package com.ruoyi.tcm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 知识对象 tcm_knowledge
 * 
 * @author cong
 * @date 2025-02-07
 */
public class TcmKnowledge extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 知识主键 */
    private Long id;

    /** 知识标题 */
    @Excel(name = "知识标题")
    private String knowledgeTitle;

    /** 知识正文 */
    @Excel(name = "知识正文")
    private String knowledgeContent;

    /** 知识库ID */
    @Excel(name = "知识库ID")
    private Long baseId;

    /** 知识库类型 */
    @Excel(name = "知识库类型")
    private String baseName;

    /** 知识类型 */
    @Excel(name = "知识类型")
    private String knowledgeType;

    /** 发布人ID */
    @Excel(name = "发布人ID")
    private Long publisherId;

    /** 发布人姓名 */
    @Excel(name = "发布人姓名")
    private String publishName;

    /** 生效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 失效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "失效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 状态（0-下线 1-发布） */
    @Excel(name = "状态", readConverterExp = "0=-下线,1=-发布")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setKnowledgeTitle(String knowledgeTitle) 
    {
        this.knowledgeTitle = knowledgeTitle;
    }

    public String getKnowledgeTitle() 
    {
        return knowledgeTitle;
    }
    public void setKnowledgeContent(String knowledgeContent) 
    {
        this.knowledgeContent = knowledgeContent;
    }

    public String getKnowledgeContent() 
    {
        return knowledgeContent;
    }
    public void setBaseId(Long baseId) 
    {
        this.baseId = baseId;
    }

    public Long getBaseId() 
    {
        return baseId;
    }
    public void setBaseName(String baseName) 
    {
        this.baseName = baseName;
    }

    public String getBaseName() 
    {
        return baseName;
    }
    public void setKnowledgeType(String knowledgeType) 
    {
        this.knowledgeType = knowledgeType;
    }

    public String getKnowledgeType() 
    {
        return knowledgeType;
    }
    public void setPublisherId(Long publisherId) 
    {
        this.publisherId = publisherId;
    }

    public Long getPublisherId() 
    {
        return publisherId;
    }
    public void setPublishName(String publishName) 
    {
        this.publishName = publishName;
    }

    public String getPublishName() 
    {
        return publishName;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("knowledgeTitle", getKnowledgeTitle())
            .append("knowledgeContent", getKnowledgeContent())
            .append("baseId", getBaseId())
            .append("baseName", getBaseName())
            .append("knowledgeType", getKnowledgeType())
            .append("publisherId", getPublisherId())
            .append("publishName", getPublishName())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
